﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Security.Cryptography;
using UnityEngine.Serialization;

namespace UBlockly.UI
{
    using Scriptable;

    [ExecuteInEditMode]
    public class NodeConfigAssist : MonoBehaviour
    {
        [SerializeField]
        public string FunctionName;
        [FormerlySerializedAs("FuncType")] [SerializeField]
        public NodeScriptType scriptType;
        [SerializeField]
        public string Desc;
        [SerializeField]
        public Transform ParamTransform;
        [SerializeField]
        public Transform[] Slots;
        [SerializeField]
        public Transform[] Packs;
      
        public NodeScriptType GetFuncType()
        {
            return scriptType;
        }
        public string GetDesc()
        {
            return Desc;
        }
        public Transform[] CreatePacks(long id)
        {
            return Packs;
        }
        ////任何node只有上下
        //public NSlotPair CreateSlotPiar(long id)
        //{
        //    if (Slots == null || Slots.Length == 0 || Slots.Length != 2)
        //        return null;
        //    return new NSlotPair(Slots[0], Slots[1]);
        //}
        public Transform GetParamTransform()
        {
            return ParamTransform;
        }
    }
}
